class Man{
    void helpMove(){
        println 'Man is helping me'
        }
}

class Woman{
    void helpMove(){
        println 'Woman is help me'
        }
}

class anmal{
    def helpMove(){
        println 'anmal is help '
        }
    def run(){
        println 'dog runing fast'
        }
}

def useHelp(help){
    help.helpMove()
    if(help.metaClass.respondsTo(help,'run')){
        help.run()
        }
    }


useHelp(new Man())
useHelp(new Woman())
useHelp(new anmal())
